{extend name="base" /}
{block name="css"}
<link href="__JS__/clock/clockpicker.css" rel="stylesheet"/>
<link href="__JS__/clock/standalone.css" rel="stylesheet"/>
{/block}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/round/index')}">期数管理</a></li>
            <li class="layui-this">重设期数</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/round/save')}" method="post">
                    <!--<input type="hidden" name="inviter_id" value="{}"/>-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">开始时间</label>
                        <div class="layui-input-block  clockpicker">
                            <input type="text" name="start_time" value="2:00" required lay-verify="required" autocomplete="off" placeholder="请输入开始时间" class="layui-input opentime">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">结束时间</label>
                        <div class="layui-input-block  clockpicker">
                            <input type="text" name="end_time" value="10:00" required lay-verify="required" autocomplete="off" placeholder="请输入结束时间" class="layui-input opentime">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回合时间</label>
                        <div class="layui-input-block">
                            <input type="number" name="round_time" value="10" required lay-verify="required" placeholder="回合时间" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item" style="display: none;">
                        <label class="layui-form-label">等待时间</label>
                        <div class="layui-input-block">
                            <input type="number" name="jian_time" value="0" required lay-verify="required" placeholder="等待时间" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script src="__JS__/clock/clockpicker.js"></script>
{/block}
{block name="script"}
<script>

    $('.clockpicker').clockpicker({
        autoclose:true,
        align:'left'
    });
</script>
{/block}